<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Document</title>
	<style>
		*{margin: 0;padding: 0;}
		body,html{width: 100%;height: 100%;position: relative;}
		.flx{ display: flex; }
		.box{
			position: absolute;
			left: 50%;
			top: 50%;
			margin-left: -90px;
			margin-top: -30px;
		}
		.na{
			width: 40px;
			height: 60px;
			line-height: 60px;
			font-size: 40px;
			margin: 0 10px;
			overflow: hidden;
		}
		.mid{
			position: relative;
		}
		.name_list{
			transition: 0.5s all ease;
			-webkit-transition: 0.5s all ease;
			-moz-transition: 0.5s all ease;
			-o-transition: 0.5s all ease;
			-ms-transition: 0.5s all ease;

			position: absolute;
			top: 0px;
		}

		.btn_box{
			position: absolute;
			left: 50%;
			top: 50%;
			margin-left: 110px;
			margin-top: -12px;
			cursor: pointer;
			text-align: center;
		}
		.btn{
			font-size: 40px;
			width: 40px;
			height: 30px;
			line-height: 30px;
		}
		.btn:hover{
			background-color: #ddd;
			color: #fff;
		}
	</style>
</head>
<body>
	<div class="flx name_line">
		<div class="">与</div>
		<div class="">予</div>
		<div class="">屿</div>
		<div class="">宇</div>
		<div class="">伛</div>
		<div class="">雨</div>
		<div class="">俣</div>
		<div class="">挧</div>
		<div class="">禹</div>
		<div class="">圄</div>
		<div class="">祤</div>
		<div class="">圉</div>
		<div class="">敔</div>
		<div class="">匬</div>
		<div class="">鄅</div>
		<div class="">偊</div>
		<div class="">庾</div>
		<div class="">萭</div>
		<div class="">斞</div>
		<div class="">铻</div>
		<div class="">瘐</div>
		<div class="">楀</div>
		<div class="">瑀</div>
		<div class="">寙</div>
		<div class="">语</div>
		<div class="">窳</div>
		<div class="">頨</div>
		<div class="">龉</div>
		<div class="">貐</div>
		<div class="">懙</div>
		<div class="">噳</div>
		<div class="">斔</div>
		<div class="">穥</div>
		<div class="">麌</div>
	</div>
	<div class="flx box">
		<div class="na ">芦</div>
		<div class="na mid">
			<ul class="name_list">
				<li>与</li>
				<li>予</li>
				<li>屿</li>
				<li>宇</li>
				<li>伛</li>
				<li>雨</li>
				<li>俣</li>
				<li>挧</li>
				<li>禹</li>
				<li>圄</li>
				<li>祤</li>
				<li>圉</li>
				<li>敔</li>
				<li>匬</li>
				<li>鄅</li>
				<li>偊</li>
				<li>庾</li>
				<li>萭</li>
				<li>斞</li>
				<li>铻</li>
				<li>瘐</li>
				<li>楀</li>
				<li>瑀</li>
				<li>寙</li>
				<li>语</li>
				<li>窳</li>
				<li>頨</li>
				<li>龉</li>
				<li>貐</li>
				<li>懙</li>
				<li>噳</li>
				<li>斔</li>
				<li>穥</li>
				<li>麌</li>
			</ul>
		</div>
		<div class="na ">谯</div>
	</div>
	<div class="btn_box">
		<button class="btn btn_pre">△</button>
		<button class="btn btn_next">▽</button>
	</div>
	<div id="print1">打印</div>
	<div class="">芦庭轩《戚氏·晚秋天》</div>
	<div class="">芦绮陌</div>
	<div class="">叶青芜</div>


	<script src="https://cdn.bootcss.com/jquery/3.1.0/jquery.min.js"></script>
	<script>
		$(document).ready(function(){
			// $(".mid")
		})

		var times = 0;
		$(".btn_pre").click(function(){
			var name_hei = parseInt($(".name_list").css("top")) + 60;
			$(".name_list").css("top",name_hei + "px");
			$(this).attr("disabled",true);
			times -= 1;
			$(".name_line div").eq(times).css("color","#ff5200").siblings().css("color","#000")
			setTimeout(function(){
				$(".btn_pre").attr("disabled",false);
			},500)
		})
		$(".btn_next").click(function(){
			var name_hei = parseInt($(".name_list").css("top")) - 60;
			$(".name_list").css("top",name_hei + "px");
			$(this).attr("disabled",true);
			times += 1;
			$(".name_line div").eq(times).css("color","#ff5200").siblings().css("color","#000")
			setTimeout(function(){
				$(".btn_next").attr("disabled",false);
			},500)
		})

		$('#print1').click(function(){
			window.print();
		});
	</script>
</body>
</html>